/* 
 * File:   general.h
 * Author: sysel
 *
 * Created on 3 Апрель 2011 г., 19:57
 */

#ifndef _GENERAL_H
#define	_GENERAL_H

#include <map>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>


#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <stdio.h>
#include <dirent.h>
#include <errno.h>

#include <signal.h>

typedef std::map<int, sockaddr_in> ClientsMap;
typedef unsigned int Uid;

#define MAX_UID 4000000000;
#define GETPORT 12345
#define SENDPORT 13245

#define _DEBUG_ 

struct Message{
	char code;
	Uid uid;
	double latt;
	double lont;
	time_t date;
};

#endif	/* _GENERAL_H */

